Ext.define("Sencha.view.DictionaryContainerList", {
    extend: "Ext.Container",
    xtype: 'dictionarycontainerlist',


    initialize: function () {

        this.callParent(arguments);
        
        var searchField ={
        	xtype: 'searchfield',
        	name : 'dictionarySearchField',
            cls: 'dictionarySearchField'
        };
        
    	var engButton = {
    	    xtype: "button",
    	    /*text: 'ENG',*/
            cls: 'engDictionaryButton',
           id: 'engDictionaryButtonId'
    	};
    	
    	var iwaButton = {
    	    xtype: "button",
    	    /*text: 'IWA',*/
    	    cls: 'iwaDictionaryButton',
           id: 'iwaDictionaryButtonId'
            
    	};
    	
           
    	var searchToolbar = {
    	    xtype: "toolbar",
    	    docked: "top",
    	    cls: "dictionaryToolBar",
    	    items: [
    	        searchField,
    	        engButton,
    	        iwaButton
    	    ]
    	};

        var dictionarySourceList = {
            xtype: "dictionarysourcelistview",

        };

        this.add([searchToolbar, dictionarySourceList]);
    },
  
    config: {
    	title: 'Dictionary',
        layout: {
            type: 'fit'
        }
    }
});